/*************************************************************************
	> File Name: 001.do-while判断数字的位数.c
	> Author: Maureen 
	> Mail: Maureen@qq.com 
	> Created Time: 五  8/20 23:29:28 2021
 ************************************************************************/

#include <stdio.h>

int main() {
    int n, digit = 0;
    scanf("%d", &n);
    int x = n;
    do {
        digit += 1;
        n /= 10;
    } while (n);
    printf("%d has %d digits\n", x, digit);

    return 0;
}
